package com.briup.bms.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.briup.bms.bean.Employee;

@Mapper
public interface IEmpMapper {
	Employee findUserId(String userId);
	List<Employee> findAll(@Param("mid")Integer managerId,
			@Param("name")String name,@Param("deptId")Integer deptId,
			@Param("begin")Date begin,@Param("end") Date end,@Param("title")String title);
	
	List<Employee> findEmpByManager(
			@Param("mids")List<Integer> managers,
			@Param("name")String name,@Param("deptId")Integer deptId,
			@Param("begin")Date begin,@Param("end") Date end,@Param("title")String title);
	Integer findMidByName(String name);
	Integer findUidByName(String name);
	List<Integer> findIdsByMids(List<Integer> MIds);

    int insertEmployee(Employee employee);

	int updateEmployee(Employee employee);

	List<Map<String,Object>>countEmpByRegion();

	void deleteById(String empId);

	void batchDeleteEmp(Set<Integer> empIds);
}
